<!--
    Copyright 2016-2017, CMCC Technologies Co., Ltd.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
	<link rel="stylesheet" type="text/css" href="/openoui/thirdparty/font-awesome/css/font-awesome.min.css"/>
	<link rel="stylesheet" type="text/css" href="/openoui/thirdparty/bootstrap/css/bootstrap.min.css"/>
	<link rel="stylesheet" type="text/css" href="/openoui/thirdparty/animate/animate.min.css"/>
	<link rel="stylesheet" type="text/css" href="/openoui/thirdparty/data-tables/dataTables.bootstrap.css"/>
	<link rel="stylesheet" type="text/css" href="/openoui/monitor/css/ngict-component.css"/>
	<link rel="stylesheet" type="text/css" href="/openoui/monitor/css/style.css"/>
	<link rel="stylesheet" type="text/css" href="/openoui/monitor/css/monitorSetting.css"/>
	<style>
		.ms-controller {
			visibility: hidden
		}
	</style>
</head>
<body>

 <div class="container-fluid" class="ms-controller"  ms-controller="monitorController">



  <div class="row" style=" margin-top: 15px;">
         <div class="col-xs-6 col-sm-12 col-md-6  col-lg-6">
           <span class=" titlefont" id="com_zte_openo_umc_monitor_monitorList_titeName" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Monitor Para List </span>
         </div>  
          
   </div>
   <div class="separator-line"></div>
 <button class="btn white radius_l" id="app-new-btn" style=" margin-bottom: 10px;"  ms-click="gotoDACPage()">
            <i class="ict-it-net"></i>  
  <span id="com_zte_openo_umc_monitor_monitorList_dac_manage" name_i18n="com_zte_openo_umc_monitor_ui_i18n"></span>
          </button>

   
    <div class="row row-fluid">
        <table class="table table-striped table-bordered table-hover dataTable " id="monitorManagerTable">
            <thead>
                <tr class="heading">
                    <th style="width: 80px;" id="com_zte_openo_umc_monitor_monitorList_monitor_sn" name_i18n="com_zte_openo_umc_monitor_ui_i18n">SN</th>
                    <th id="com_zte_openo_umc_monitor_monitorList_monitor_name" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Display Name</th>
                     <th id="com_zte_openo_umc_monitor_monitorList_monitor_ipaddress" name_i18n="com_zte_openo_umc_monitor_ui_i18n">IP Address</th>
					 <th id="com_zte_openo_umc_monitor_monitorList_monitor_dacip" name_i18n="com_zte_openo_umc_monitor_ui_i18n">DAC IP Address</th>
                     <th id="com_zte_openo_umc_monitor_monitorList_monitor_type" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Type</th>
					 <th id="com_zte_openo_umc_monitor_monitorList_monitor_opr" name_i18n="com_zte_openo_umc_monitor_ui_i18n">Opr</th>
                    
                </tr>
            </thead>
            <tbody ms-each-monitor="resource.monitorList">
                <tr>
                    <td>{{$index+1}}</td>  
                    <td><a href="#" ms-click="gotoMonitorSettingPage(monitor.oid)">{{monitor.label}}</a></td>
                    <td ms-text="monitor.ipAddress"></td>    
					<td ms-text="monitor.customPara.PROXYIP"></td>                        
                    <td>{{monitor.neTypeId}}</td>
					<td>
						<a href="#" ms-click="deleteMonitorInfo(monitor.oid)">
							<span id="com_zte_openo_umc_monitor_monitorsetting_delete" name_i18n="com_zte_openo_umc_monitor_ui_i18n">delete</span>
						</a>
					</td>
                </tr>
            </tbody>
        </table>
    </div>
 </div>
<script type="text/javascript" src="/openoui/thirdparty/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/openoui/thirdparty/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/openoui/thirdparty/jquery.i18n/jquery.i18n.properties-1.0.9.js"></script>
<script type="text/javascript" src="/openoui/monitor/js/loadi18nApp_ngict-umc-monitor.js"></script>
<script type="text/javascript" src="/openoui/monitor/js/tools.js"></script>
<script type="text/javascript" src="/openoui/monitor/js/hk.min.js" ></script>
<script type="text/javascript">
	var lang= getLanguage();
	loadPropertiesSideMenu(lang, 'umc-monitor-iui-i18n', 'i18n/');
</script>
<script type="text/javascript" src="/openoui/thirdparty/data-tables/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/openoui/thirdparty/bootstrap-growl/bootstrap-growl.min.js"></script>
<script type="text/javascript" src="/openoui/thirdparty/avalon/avalon.js"></script>
<script type="text/javascript" src="/openoui/monitor/js/monitorSettingUtil.js"></script>
<script type="text/javascript" src="/openoui/monitor/js/monitorSettingController.js"></script>
<script>
	$(function(){
		vm.queryMonitorList();
	});
</script>
</body>
</html>
